package com.kate.mall.order.price.coupon;

import com.kate.mall.order.dto.CouponDTO;
import com.kate.mall.order.dto.OrderDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @Description: 默认的优惠券计算组件
 * @Auther: 新梦想*陈超
 * @Date: 2021/10/30 19:35
 */
@Component
@Slf4j
public class DefaultCouponCalculator implements CouponCalculator {

	@Override
	public BigDecimal calculate(OrderDTO order, CouponDTO coupon) {
		log.info("======默认的优惠券计算组件.......");
		return new BigDecimal("0.0");
	}

}